// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/store.js'
import api from "@/api"
// import './config/rem.js'
Vue.config.productionTip = false
import 'lib-flexible/flexible.js'
// 引入 vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
// 引入element 
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
// 配置axios
import http from "@/api/axios"
import setdate from "@/utils"
Vue.prototype.$http = http;
Vue.prototype.setdate = setdate;
Vue.prototype.api = api;
//vuex
import Vuex from 'vuex'
Vue.use(Vuex)
// 信息提示   content:提示内容，type：提示类型1，success 2，warning
Vue.prototype.Tips = function (content, type) {
	this.$notify({
		message: content,
		duration: 1000,
		type: type
	});
}

export default new Vuex.Store({
	state: {
		routeActioc: "push"
	},
	mutations: {

	},
	actions: {}
})

/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	store,
	components: { App },
	template: '<App/>'
})
